import request from '@/utils/request';

/**
 * getTaskInfo
 * @param id 
 * @returns 
 */
export const getTaskInfo = (id) => {
  return request(`/yst-workflow/workflow/api/procManage/${id}/taskInfo`, {
    method: 'get'
  });
};

/**
 * getWorkflowUser
 * @returns 
 */
export const getWorkflowUser = () => {
  return request(`/yst-workflow/workflow/api/query/users`, {
    method: 'get'
  });
};

/**
 * resetTaskHandler
 * @param data 
 * @returns 
 */
export const resetTaskHandler = (data) => {
  return request(`/yst-workflow/workflow/api/procManage/resetTaskhandler`, {
    method: 'post',
    query: data
  });
};
